#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName :python_test4_10.py
# @Author :myh

# 练习 4.10：切片　选择你在本章编写的一个程序，在末尾添加几行代
# 码，以完成如下任务。

squares = [value**3  for value in range(1,10+1)]
print(squares)

print("\nThe first three items in the list are:")
print(squares[:3])

print("\nThree items from the middle of the list are:")
print(squares[3:6])

print("\nThe last three items in the list are:")
print(squares[len(squares)-3:])
